package com.example.tasksmcpserver.configuration;

import com.example.tasksmcpserver.service.FwxxService;
import com.example.tasksmcpserver.service.TaskService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class McpConfiguration {

    @Bean
    public ToolCallbackProvider taskTools(TaskService taskService) {
        return MethodToolCallbackProvider.builder().toolObjects(taskService).build();
    }

    @Bean
    public ToolCallbackProvider fwxxTools(FwxxService fwxxService) {
        return MethodToolCallbackProvider.builder().toolObjects(fwxxService).build();
    }
}
